import request from '../utils/request';

export const fetchData = query => {
    return request({
        url: './table.json',
        method: 'get',
        params: query
    });
};

export const getData = (URL,query) => {
    return request.get(URL,{params: query})
};
export const postData = (URL,query) => {
    return request.post(URL,query)
};
export const putData = (URL,query) => {
    return request.put(URL,query)
};
export const delData = (URL) => {
    return request.delete(URL)
};

